package cn.changein.framework.modular.exportSetting.mapper;

import cn.changein.framework.modular.exportSetting.entity.ExportSetting;
import cn.changein.framework.modular.exportSetting.model.params.ExportSettingParam;
import cn.changein.framework.modular.exportSetting.model.result.ExportSettingResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 导出设置 Mapper 接口
 * </p>
 *

 * @Date 2020-11-28
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
public interface ExportSettingMapper extends BaseMapper<ExportSetting> {

    /**
     * 获取列表
     *

     * @Date 2020-11-28
     */
    List<ExportSettingResult> customList(@Param("paramCondition") ExportSettingParam paramCondition);

    /**
     * 获取map列表
     *

     * @Date 2020-11-28
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ExportSettingParam paramCondition);

    /**
     * 获取分页实体列表
     *

     * @Date 2020-11-28
     */
    Page<ExportSettingResult> customPageList(@Param("page") Page page, @Param("paramCondition") ExportSettingParam paramCondition);

    /**
     * 获取分页map列表
     *

     * @Date 2020-11-28
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ExportSettingParam paramCondition);

    ExportSettingResult getExportSettingByCode(@Param("exportCode") String exportCode);

    List<ExportSettingResult> validateExportSetting(@Param("paramCondition") ExportSettingParam paramCondition);
}
